#include "SensorXYZView.h"
#include "SensorXYZViewResourceDefine.h"

 void SensorXYZView::setXYZ(uint16_t x, uint16_t y, uint16_t z)
 {
	 sensorxyzComponent.update(x,y,z);
 }

void SensorXYZView::init()
{
	Serial.println("SensorXYZView::init()");
	
	Serial.println("Three-axis sensor view initialized...");
}

void SensorXYZView::show()
{

	//Set title
	lcd.setFreeFont(SENSORXYZ_TITLE_FONT);
	lcd.setTextColor(SENSORXYZ_TEXT_COLOR);

	lcd.drawString("Three-axis Sensor", SENSORXYZ_TITLE_POS_X, SENSORXYZ_TITLE_POS_Y);

	sensorxyzComponent.render();

}


SensorXYZView::~SensorXYZView()
{
}
